package com.example.chenkai10;

import android.content.Intent;
import android.os.Bundle;
//import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity2 extends AppCompatActivity {

    Bundle bundle;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);

        Intent intent2=getIntent();
        bundle = intent2.getExtras();
        String string = bundle.getString("name");
        Integer age = bundle.getInt("age");

        setResult(88);


//        Integer age = intent2.getIntExtra("age",3);


//        String string = intent2.getStringExtra("TextView");

//        Toast.makeText(this,"年龄: "+ age, Toast.LENGTH_LONG).show();

    }
}